import { Request } from "@/utils/request";
export class AssetInfo extends Request {
  constructor(baseUrl?:string){
    super(baseUrl);
  }
  // 首页-头部指标卡数据查询
  queryHeaderData(data: {
    companyIdList: (string | number) []
    queryTime: string | number
  }){
    return this.post('/ys-amp-web/home/queryHeaderData',data)
  }

  // 首页-地图点位数据查询
  queryPositionData(data: {
    companyIdList: (string | number) []
    queryTime: string | number
  }){
    return this.post('/ys-amp-web/home/queryPositionData',data)
  }

  // 资产信息-资产概览/资产核心分布情况
  queryData(data: {
    companyIdList: (string | number) []
  }){
    return this.post('/ys-amp-web/asset/info/queryData',data)
  }
  
  // 首页-资产环形图数据查询
  ratio(){
    return this.post('/ys-amp-web/bi/layout/ratio')
  }


}
export const AssetInfoApi = new AssetInfo()
